/// 当前页结果集
class FinanceBackendUserPageReponseDto {
  /// 用户ID
  final int? id;
  /// 用户名
  final String? userName;
  /// 密码
  final String? password;
  /// 角色ID
  final String? roleId;
  /// 角色名称
  final String? roleName;
  /// 邮箱
  final String? email;
  /// 启用状态，1：正常，0：停用
  final int? status;
  /// 创建时间
  final String? createTime;
  /// 是否主账号：0否 1是，默认0
  final int? mainUser;
  /// 财务客服的报价权限，1-有，0-无
  final int? quotePermission;
  /// 财务客服处理提现订单的的最小金额，单位：奈拉，整数
  final int? orderAmountRangeMin;
  /// 财务客服处理提现订单的的最大金额，单位：奈拉，整数
  final int? orderAmountRangeMax;

  FinanceBackendUserPageReponseDto({
    this.id,
    this.userName,
    this.password,
    this.roleId,
    this.roleName,
    this.email,
    this.status,
    this.createTime,
    this.mainUser,
    this.quotePermission,
    this.orderAmountRangeMin,
    this.orderAmountRangeMax,
  });

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    if (id != null) data['id'] = id;
    if (userName != null) data['userName'] = userName;
    if (password != null) data['password'] = password;
    if (roleId != null) data['roleId'] = roleId;
    if (roleName != null) data['roleName'] = roleName;
    if (email != null) data['email'] = email;
    if (status != null) data['status'] = status;
    if (createTime != null) data['createTime'] = createTime;
    if (mainUser != null) data['mainUser'] = mainUser;
    if (quotePermission != null) data['quotePermission'] = quotePermission;
    if (orderAmountRangeMin != null) data['orderAmountRangeMin'] = orderAmountRangeMin;
    if (orderAmountRangeMax != null) data['orderAmountRangeMax'] = orderAmountRangeMax;
    return data;
  }

  factory FinanceBackendUserPageReponseDto.fromJson(Map<String, dynamic> json) {
    return FinanceBackendUserPageReponseDto(
      id: json['id'],
      userName: json['userName'],
      password: json['password'],
      roleId: json['roleId'],
      roleName: json['roleName'],
      email: json['email'],
      status: json['status'],
      createTime: json['createTime'],
      mainUser: json['mainUser'],
      quotePermission: json['quotePermission'],
      orderAmountRangeMin: json['orderAmountRangeMin'],
      orderAmountRangeMax: json['orderAmountRangeMax'],
    );
  }
}